import { ref } from 'vue';
import * as $axios from '../api/index'
import { useDemoStore } from '../pinia/index'
const store = useDemoStore()

const powerList = ref({})
const usePower = () => {
    $axios.$usergetInquiryAuth({ token: store.token }).then(res => {
        if (!res.Status == 0) return
        powerList.value = res.data
    })
    return {
        powerList
    }
}

export default usePower